#ifndef _GY906_H_
#define _GY906_H_

#include "main.h"


//#include "bsp_usart1.h"

#define GY906_SlaveAddress             0x00

#define GY906_RAM_ACCESS               0x00 //RAM access command
#define GY906_EEPROM_ACCESS            0x20 //EEPROM access command
#define GY906_RAM_TOBJ1                0x07 //To1 address in the eeprom

uint8_t GY906_BAA_Init(void);

uint16_t GY906_BAA_Single_Read(uint8_t cmd);
uint8_t  GY906_BAA_Single_Write(uint8_t cmd,uint16_t data,uint8_t pec);

float GY906_BAA_Temp_Read(void);

#endif
